import React from 'react';
import ReactDOM from 'react-dom/client';
import 'antd/dist/antd.compact.min.css';//紧凑主题,没有主题,就没有样式 引入优先级更高
import 'react-toastify/dist/ReactToastify.css';
import "@arco-design/web-react/dist/css/arco.css";
import './index.css';
import App from './App';
import {ConfigProvider} from "antd";
import  zhCN from 'antd/lib/locale/zh_CN';

import {BrowserRouter, Route} from "react-router-dom";
import Login from "./pages/Login";
import {Routes} from "react-router";
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
    <BrowserRouter>
       {/* 国际化 全局配置*/}
        <ConfigProvider locale={zhCN}>
            <Routes>
                <Route exact path={'/login'} element={<Login/>}/>
                <Route exact path={'/admin/*'} element={<App/>}></Route>
                <Route path={'/'} element={<Login/>}></Route>
            </Routes>
          {/*  <App/>*/}
        </ConfigProvider>
    </BrowserRouter>

);

